package org.feng.entity.query;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 登录请求参数
 *
 * @author : FengShuai
 * @since : 2024/6/27 9:24
 */
@Data
@Schema(name = "登录参数")
public class LoginQuery {
    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    @Schema(title = "用户名")
    private String username;
    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @Schema(title = "密码")
    private String password;
    /**
     * code key
     */
    @NotBlank(message = "标识不能为空")
    @Schema(title = "唯一key")
    private String key;
    /**
     * 验证码
     */
    @NotBlank(message = "验证码不能为空")
    @Schema(title = "验证码")
    private String code;
}
